package info.techgeek.labs.collection;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;

public class Sorting{

	public static void main(String[] args) {
		
	    HashMap props = new HashMap();
	    props.put("key45", "some value");
	    props.put("key12", "some other value");
	    props.put("key39", "yet another value");
	    Set s = props.keySet();

	    s = new TreeSet(s);
	    
	    Object[] objects =  {new Integer(12),new String("test"),new Integer(4),new Boolean(true)};
	    Arrays.sort(objects);
	    
	    List<Animal> list = new ArrayList<Animal>();
	    
	    
	}

	public void takeList(List<? extends Object> list){
		
//		list.add("foo");
		list= new ArrayList<String>();
		list= new ArrayList<Object>();
//		String s = list.get(0);
		Object o = list;
		
		
		
	}

	class Dog extends Animal{
		
	}
	
	class Animal{
		
	}
}
